/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_ua_class")
//@NamedQueries({@NamedQuery(name = "TUaClass.findAll", query = "SELECT t FROM TUaClass t"), @NamedQuery(name = "TUaClass.findByUaClassId", query = "SELECT t FROM TUaClass t WHERE t.uaClassId = :uaClassId"), @NamedQuery(name = "TUaClass.findByUaClass", query = "SELECT t FROM TUaClass t WHERE t.uaClass = :uaClass"), @NamedQuery(name = "TUaClass.findByUaClassInfo", query = "SELECT t FROM TUaClass t WHERE t.uaClassInfo = :uaClassInfo"), @NamedQuery(name = "TUaClass.findByUaClassType", query = "SELECT t FROM TUaClass t WHERE t.uaClassType = :uaClassType"), @NamedQuery(name = "TUaClass.findByComId", query = "SELECT t FROM TUaClass t WHERE t.comId = :comId")})
public class TUaClass implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "UA_CLASS_ID")
    private Integer uaClassId;
    @Column(name = "UA_CLASS")
    private String uaClass;
    @Column(name = "UA_CLASS_INFO")
    private String uaClassInfo;
    @Column(name = "UA_CLASS_TYPE")
    private Integer uaClassType;
    @Column(name = "COM_ID")
    private Integer comId;

    public TUaClass() {
    }

    public TUaClass(Integer uaClassId) {
        this.uaClassId = uaClassId;
    }

    public Integer getUaClassId() {
        return uaClassId;
    }

    public void setUaClassId(Integer uaClassId) {
        this.uaClassId = uaClassId;
    }

    public String getUaClass() {
        return uaClass;
    }

    public void setUaClass(String uaClass) {
        this.uaClass = uaClass;
    }

    public String getUaClassInfo() {
        return uaClassInfo;
    }

    public void setUaClassInfo(String uaClassInfo) {
        this.uaClassInfo = uaClassInfo;
    }

    public Integer getUaClassType() {
        return uaClassType;
    }

    public void setUaClassType(Integer uaClassType) {
        this.uaClassType = uaClassType;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (uaClassId != null ? uaClassId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TUaClass)) {
            return false;
        }
        TUaClass other = (TUaClass) object;
        if ((this.uaClassId == null && other.uaClassId != null) || (this.uaClassId != null && !this.uaClassId.equals(other.uaClassId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TUaClass[uaClassId=" + uaClassId + "]";
    }

}
